package com.modai.springcloud.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：modai
 * @date ：Created in 2020-12-3 23:50
 * @description：
 */


@Configuration
public class FooRule {
    @Bean
    public IRule fooMyRule(){
        return new RandomRule();
    }
}

